#include <REGX52.H>
#include "Delay.h"
#include "MatrixLED.h"


unsigned char Animation[] = {0x81,0x81,0x81,0xFF,0xFF,0x81,0x81,0x81,0x00,0x00,0xFF,0x01,0x01,0x00,0xFF,0x81,
0x81,0x81,0xFF,0x00,0xC0,0x30,0x0C,0x03,0x03,0x06,0x08,0x30,0xC0,0x00,0x00,0x00,};


void main()
{
	unsigned char i,offset=1,count=0;
	MatrixLED_Init();
     while(1)
   {
	   for(i=0;i<8;i++)
	   {
			MatrixLED_ShowCokunm(i,Animation[i+offset]);
	   }
       count++;
	   if(count>10)
	   {
			count = 0;
		    offset++;
	   }
	   if(offset>(sizeof(Animation)/sizeof(Animation[0])-8))
	   {
			offset=0;
	   }
   }
}